from tkinter import *

root = Tk()

photo = PhotoImage(file='bg.gif')
textLabel = Label(root,
                  text='Hello\nWorld!',
                  justify=LEFT,
                  image=photo,#背景图片
                  compound=CENTER,#混合模式，居中
                  font=('宋体',20),
                  fg='white')
textLabel.pack()

mainloop()
